package com.yanqu.road.entity.log.hotpotjump;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_activity_hotpot_jump_start", desc = "欢跃火锅开局", autoSave = true, dataUpload = true, eventName = "hotpot_begin", uploadCk = true)
public class LogHotpotJumpStart extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "开局总次数", dataAttribute = "hotpot_time")
    private int totalTimes;
    @FieldTypeAnnotation(desc = "消耗", dataAttribute = "hotpot_use")
    private String cost;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogHotpotJumpStart(int activityId, long userId, int totalTimes, String cost) {
        this.activityId = activityId;
        this.userId = userId;
        this.totalTimes = totalTimes;
        this.cost = cost;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
